package com.ruoyi.project.meal.domain;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.DateUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 职工报餐对象 meal_worker
 * 
 * @author Sky
 * @date 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MealWorker extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /** 上报人 */
    @Excel(name = "上报人")
    private String reportName;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 早餐 */
    @Excel(name = "早餐")
    private String breakfast;

    /** 午餐 */
    @Excel(name = "午餐")
    private String lunch;

    /** 晚餐 */
    @Excel(name = "晚餐")
    private String dinner;

    /** 院区 */
    @Excel(name = "院区")
    private String campus;

    /** 上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间")
    private String reportDateStr;


    public String getReportDateStr() {
        if(reportDate!=null){
            reportDateStr= DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,reportDate);
        }
        return reportDateStr;
    }
}
